package com.ouyy.volunteerservice.volunteer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ouyy.volunteerservice.volunteer.domain.po.Organizations;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrganizationsMapper extends BaseMapper<Organizations> {


    /**
     * 查询所有组织的 organization_id
     */
    @Select("SELECT organization_id FROM organizations")
    List<String> getAllOrganizationIds();
}
